#pragma once
#include "DFixed.h"
#include "../DWorld.h"
#include "../DVector3.h"
#include "DJointGroup.h"

namespace Skill
{
	namespace Ode
	{
		namespace Joints
		{		
			DFixed::DFixed(DWorld^ world , DJointGroup^ group)
				:DJoint(world,group)
			{
				dWorldID w = world? world->_This : NULL;
				dJointGroupID g = group? group->_This : NULL;
				_SetPointer(dJointCreateFixed(w,g),true);
			}
			void DFixed::SetParam(DJointParameters parameter, dReal value)
			{
				dJointSetFixedParam(_This,(int)parameter, value);
			}
			dReal DFixed::GetParam(DJointParameters parameter)
			{
				return dJointGetFixedParam(_This,(int)parameter);
			}
		}
	}
}